const mongoose = require('mongoose')
const schema = new mongoose.Schema({
    title: String,
    parnet: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'Category'
    }
}, {
    timestamps: true
})

module.exports = mongoose.model('Category', schema)